﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Markup;

namespace SilverTile.Xaml
{

    [ContentProperty("Frames")]
    public class FrameAnimation : FrameworkElement
    {

        public FrameAnimation()
        {
            Frames = new List<SpriteFrame>();
        }

        public static readonly DependencyProperty FramesProperty = DependencyProperty.RegisterAttached("Frames", typeof(List<SpriteFrame>), typeof(FrameAnimation),
            null);

        public List<SpriteFrame> Frames
        {
            get { return (List<SpriteFrame>)GetValue(FramesProperty); }
            set { SetValue(FramesProperty, value); }
        }
    }
}
